Move check for native Win32 (mingw) a bit earlier. If Win32, disable
authorTor Lillqvist <tml@iki.fi>
Fri, 5 Mar 2004 23:28:39 +0000 (23:28 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 5 Mar 2004 23:28:39 +0000 (23:28 +0000)
2004-03-05  Tor Lillqvist  <tml@iki.fi>

* configure.in: Move check for native Win32 (mingw) a bit
earlier. If Win32, disable static builds (as in GLib). Remove
unnecessary AC_LIBTOOL_WIN32_DLL.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 8dc45aabb89d97809ff3175d25cab2bf2dd7ba48..96ad6a5d4d6d890f941b880a72f57b816bc1d6f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-03-05  Tor Lillqvist  <tml@iki.fi>
 
+       * configure.in: Move check for native Win32 (mingw) a bit
+       earlier. If Win32, disable static builds (as in GLib). Remove
+       unnecessary AC_LIBTOOL_WIN32_DLL.
+
        * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
 
        * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
index 8dc45aabb89d97809ff3175d25cab2bf2dd7ba48..96ad6a5d4d6d890f941b880a72f57b816bc1d6f3 100644 (file)
@@ -1,5 +1,9 @@
 2004-03-05  Tor Lillqvist  <tml@iki.fi>
 
+       * configure.in: Move check for native Win32 (mingw) a bit
+       earlier. If Win32, disable static builds (as in GLib). Remove
+       unnecessary AC_LIBTOOL_WIN32_DLL.
+
        * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
 
        * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
index 8dc45aabb89d97809ff3175d25cab2bf2dd7ba48..96ad6a5d4d6d890f941b880a72f57b816bc1d6f3 100644 (file)
@@ -1,5 +1,9 @@
 2004-03-05  Tor Lillqvist  <tml@iki.fi>
 
+       * configure.in: Move check for native Win32 (mingw) a bit
+       earlier. If Win32, disable static builds (as in GLib). Remove
+       unnecessary AC_LIBTOOL_WIN32_DLL.
+
        * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
 
        * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
index 8dc45aabb89d97809ff3175d25cab2bf2dd7ba48..96ad6a5d4d6d890f941b880a72f57b816bc1d6f3 100644 (file)
@@ -1,5 +1,9 @@
 2004-03-05  Tor Lillqvist  <tml@iki.fi>
 
+       * configure.in: Move check for native Win32 (mingw) a bit
+       earlier. If Win32, disable static builds (as in GLib). Remove
+       unnecessary AC_LIBTOOL_WIN32_DLL.
+
        * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
 
        * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
index 8dc45aabb89d97809ff3175d25cab2bf2dd7ba48..96ad6a5d4d6d890f941b880a72f57b816bc1d6f3 100644 (file)
@@ -1,5 +1,9 @@
 2004-03-05  Tor Lillqvist  <tml@iki.fi>
 
+       * configure.in: Move check for native Win32 (mingw) a bit
+       earlier. If Win32, disable static builds (as in GLib). Remove
+       unnecessary AC_LIBTOOL_WIN32_DLL.
+
        * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
 
        * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
index 922c6fb1962cadc6ed41df51a83004479ab114c0..b68b5ce6fd370b21415d0c215ca43d104926f9bf 100644 (file)
@@ -107,11 +107,34 @@ GETTEXT_PACKAGE=gtk20
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
 
+MATH_LIB=-lm
+AC_MSG_CHECKING([for native Win32])
+case "$host" in
+  *-*-mingw*)
+    os_win32=yes
+    MATH_LIB=
+    ;;
+  *)
+    os_win32=no
+    ;;
+esac
+AC_MSG_RESULT([$os_win32])
 
 dnl Initialize libtool
 AC_PROG_CC
 AM_DISABLE_STATIC
-AC_LIBTOOL_WIN32_DLL
+
+if test "os_win32" = "yes"; then
+  if test x$enable_static = xyes -o x$enable_static = x; then
+    AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
+    enable_static=no
+  fi
+  if test x$enable_shared = xno; then
+    AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
+  fi
+  enable_shared=yes
+fi
+
 AM_PROG_LIBTOOL
 
 AM_PROG_AS
@@ -133,18 +156,6 @@ esac
 AC_MSG_RESULT([$platform_win32])
 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
 
-MATH_LIB=-lm
-AC_MSG_CHECKING([for native Win32])
-case "$host" in
-  *-*-mingw*)
-    os_win32=yes
-    MATH_LIB=
-    ;;
-  *)
-    os_win32=no
-    ;;
-esac
-AC_MSG_RESULT([$os_win32])
 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
 AM_CONDITIONAL(OS_UNIX, test "$os_win32" != "yes")